<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of home
 *
 * @author Gidaff_01
 */
class Home extends FrontEnd_Controller {
    function __construct() {
        parent::__construct();
        $this->load->model('Home_m');
    }
    function index(){
        $this->display_view('home/index');
    }
    function get_text($page_id) {
        $query = $this->Home_m->get_text_by_page_id($page_id);
        $this->_data['all_text'] = $query;
        $this->display_view('home/list_text');
    }

}

?>
